import Vue from '../vue'
import store from '../vuex/store'
import Vote from '../component/activity/toplist/vote/vote.vue'
import loginCheck from '../util/login-check'
import { alert } from 'vue-strap'

new Vue({
  el: 'body',
  components: {
    'vue-vote-list': Vote,
    'vue-alert-msg': alert
  },
  store,
  vuex: {
    getters: {
      msg: state => state.msg,
      menu: state => state.menuList.activity
    }
  },
  created() {
    loginCheck(this)
  }
})
